package com.mht2017.common.dto;

public class HeartbeatDto {

	private String ip;
	private int port;
	private String errorCode;
	private long timestamp;

	public HeartbeatDto() {
	}

	public HeartbeatDto(String ip, int port, long timestamp) {
		this.ip = ip;
		this.port = port;
		this.timestamp = timestamp;
	}

	public HeartbeatDto(String errorCode, long timestamp) {
		this.errorCode = errorCode;
		this.timestamp = timestamp;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

}
